package com.jensen.action;

import com.jensen.model.User;
import com.opensymphony.xwork2.ActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * Created by Jensen on 2017/1/9.
 */
@Component("login")
@Scope( "prototype" )
public class LoginAction extends ActionSupport {

   private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String execute(){
        return SUCCESS;
    }
}
